cmake_minimum_required(VERSION 2.8.0)
project(daemon)
if (CMAKE_SYSTEM_NAME MATCHES "Windows")
	file(GLOB DAEMON_SOURCE_FILES  ${CMAKE_CURRENT_SOURCE_DIR}/win/*.cpp)
	INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/win)
else()
	file(GLOB DAEMON_SOURCE_FILES  ${CMAKE_CURRENT_SOURCE_DIR}/unix/*.c)
endif()
add_executable(daemon ${DAEMON_SOURCE_FILES})
